package com.lzctzk.serviceaddress.enums;

/**
 * Title:
 * Description:定义最终常量
 * Company:
 *
 * @user GuiYue
 * @time 18:23
 * @project_name smartcommunity
 * @package_name com.ctzk.smartcommunity
 **/

//使用枚举定义各种恒定信息，标准化返回信息
public enum ResultEnum
{
    SUCCESS(200,"成功"),
    HALFSUCCESS(200,"无数据"),//已通过查找，数据库无数据
    USERERROR(400,"客服端错误"),
    USERDATEEROR(401, "客户端数据错误"),
    SERVICEERROR(500,"服务端错误"),
    SERVICEDATAERROR(501,"服务端数据错误"),
    FULLERROR(-1,"未知错误")
    ;

    private Integer status;
    private String msg;

    ResultEnum(Integer status, String msg)
    {
        this.status = status;
        this.msg = msg;
    }

    public Integer getStatus()
    {
        return status;
    }

    public String getMsg()
    {
        return msg;
    }
}
